package org.jeecg.modules.message.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.system.base.entity.JeecgEntity;
import org.jeecg.common.system.vo.SysMessageTemplateVo;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 消息模板
 * @Author: jeecg-boot
 * @Date:  2019-04-09
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_sms_template")
public class SysMessageTemplate extends JeecgEntity{
	/**模板CODE*/
	@Excel(name = "模板CODE", width = 15)
	private java.lang.String templateCode;
	/**模板标题*/
	@Excel(name = "模板标题", width = 30)
	private java.lang.String templateName;
	/**
	 * 模板内容
	 */
	@Excel(name = "模板内容", width = 50)
	private java.lang.String templateContent;
	/**
	 * 模板测试json
	 */
	@Excel(name = "模板测试json", width = 15)
	private java.lang.String templateTestJson;
	/**
	 * 模板类型
	 */
	@Excel(name = "模板类型", width = 15)
	private java.lang.String templateType;

	/**
	 * 接收者
	 * 数据库也要添加字段
	 *
	 * @author zhouwr
	 */
	@Excel(name = "接收者", width = 15)
	private java.lang.String receiver;

	/**
	 * VO
	 *
	 * @return
	 * @author zhouwr
	 */
	public SysMessageTemplateVo vo() {
		return new SysMessageTemplateVo(
				super.getId(),
				this.templateCode,
				this.templateName,
				this.templateContent,
				this.templateTestJson,
				this.templateType,
				this.receiver
		);
	}
}
